package com.lagou.edu.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhangjinshan
 * @version 1.0
 * @description
 * @date 2021/8/26 下午4:01
 */
@FeignClient(name = "lagou-service-code")
public interface CodeClient {

    @GetMapping("/validate/{email}/{code}")
    Integer validate(@PathVariable(name = "email") String email, @PathVariable(name = "code") String code);
}
